package com.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("nodedata_table")
public class Oil {

   @TableId(type = IdType.AUTO)  // 数据库id自增
   private int id; //每条数据id

   private String oilfield;//油田编号

   private String eui;//LoRa终端ID

   private  String time;//节点仪文件内部时间戳

   private  float voltage;//电压

   private  float memory;

   private  float longitude;//经度

   private  float latitude;//纬度

   private boolean wifistatus;

   private boolean nodefault; //=1正常,=0异常

   public boolean isWifistatus() {
      return wifistatus;
   }

   public void setWifistatus(boolean wifistatus) {
      this.wifistatus = wifistatus;
   }

   public boolean isNodefault() {
      return nodefault;
   }

   public void setNodefault(boolean nodefault) {
      this.nodefault = nodefault;
   }



}
